package com.maimao.model.kill.input;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author MaoLin Wang
 * @date 2021/4/7 9:41 下午
 */
@Data
public class ScheduleInput implements Serializable {

    @NotNull(message = "请选择活动")
    private Integer activityId;

    /**
     * 开始时间 【起】
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime fromTime;

    /**
     * 开始时间 【止】
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime toTime;

    /**
     * 状态
     */
    private Integer enabled;

    private Integer page;

    private Integer size;

}
